<?php
/**
 * RQCMS 1.0   A simple,personal,multi-site cms 
 *
 * @copyright  Copyright (c) 2010-2011 RQ204
 * @license    GNU General Public License 2.0
 */
 //版权相关设置
define('RQ_AppName','RQCMS');
define('RQ_VERSION','0.84');
define('RQ_RELEASE','20110815');
define('RQ_AUTHOR','RQ204');
define('RQ_WEBSITE','http://www.rqcms.com');
define('RQ_EMAIL','rq204@qq.com');

//核心参数
define('RQ_ROOT',dirname(__file__));
define('RQ_CORE',RQ_ROOT.'/core');
define('RQ_DATA',RQ_ROOT.'/data');
define('RQ_HOST',$_SERVER['HTTP_HOST']);
define('RQ_POST',$_SERVER['REQUEST_METHOD']=='GET'?false:true);
define('RQ_FILE',substr((isset($_SERVER['REDIRECT_URL'])?$_SERVER['REDIRECT_URL']:$_SERVER['SCRIPT_NAME']),1));
define('RQ_HTTP',(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') ? 'https://' : 'http://');
define('RQ_ISIE',strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE')); 

//加载公共类和配置文件
include RQ_CORE.'/library/class.mysql.php';
include RQ_CORE.'/library/func.base.php';
include RQ_CORE.'/library/func.cache.php';
include RQ_CORE.'/library/func.data.php';
include RQ_DATA.'/config.php';

//错误提示设置和参数过滤
error_reporting(E_ALL);
set_error_handler("debug");

ob_start();
doStripslashes();

//数据库实例化
$DB=new DB_MySQL();
$DB->connect(DB_HOST,DB_USER,DB_PASSWORD,DB_DATABASE,0);

date_default_timezone_set('Asia/Shanghai');

$hostid=null;
hosts_recache();
cates_recache();
filemaps_recache();
plugins_recache();
comments_recache();
links_recache();
rss_recache();
stick_recache();
vars_recache();
pics_recache();
latest_recache();
redirect_recache();
hot_recache();
redirect('更新所有站点缓存成功','admin.php?file=special');

ob_flush();//输出内容